package lec01.pm;

import java.util.Scanner;

public class IO2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner cin=new Scanner(System.in);
		while(cin.hasNext())
		{
			int a=cin.nextInt();
			int b=cin.nextInt();
			if(a==0 && b==0)
				break;
			System.out.println(a+b);
		}
		
		cin.close();

	}

}
